<?php
	session_start();
	require "../modules/conn.php";
	$sid=$_SESSION["sid"];
	$sql="select imgid from t_image where s_img_id=$sid";
	$result=mysqli_query($conn,$sql);
	$arr=array();
	if($result){
		while($row=mysqli_fetch_assoc($result)){
			array_push($arr,$row);
		};
	}
	echo json_encode($arr);
?>